package com.tjzd.javalearn;

public class setcbject {
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    int age;
    //javabean类中的行为不用写static
    public void see()
    {
        System.out.println("上课学习");
    }
    public void eat()
    {
        System.out.println("上课不能吃东西");
    }

}
